package com.huashi.dealer.modular.business.setting.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
@Schema(description = "满额包邮设置VO")
public class FullFreeSettingVo {

    @Schema(description = "是否开启满额包邮：1开启，0关闭")
    private Integer isOpen;

    @Schema(description = "商品赠品类型：0单选，1混选")
    private Integer isGoodsType;

    @Schema(description = "单笔订单额度")
    private BigDecimal money;

    @Schema(description = "商品赠送数量")
    private Integer number;

    @Schema(description = "不参与包邮的地区")
    private NotInRegion notinRegion;

    @Schema(description = "不参与包邮的商品列表")
    private List<NotInGoods> notinGoods;

    @Schema(description = "所有地区数据（树状结构）")
    private List<Object> regionData;

    @Schema(description = "城市总数")
    private Integer cityCount;

    @Data
    @Schema(description = "不参与包邮的地区")
    public static class NotInRegion {
        @Schema(description = "不参与包邮的省份ID集合")
        private List<Long> province;

        @Schema(description = "不参与包邮的城市ID集合")
        private List<Long> citys;

        @Schema(description = "地区树形数据")
        private List<Object> treeData;
    }

    @Data
    @Schema(description = "不参与包邮的商品")
    public static class NotInGoods {
        @Schema(description = "商品ID")
        private Long goodsId;

        @Schema(description = "商品名称")
        private String goodsName;

        @Schema(description = "商品图片")
        private String imageUrl;
    }
}
